<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="aqvLayout2">
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<meta charset="utf-8"/>
		<title>A qeuien voto | Crear Proyecto </title>
		<%--
			<g:set var="entityName" value="${message(code: 'project.label', default: 'Project')}" />
			<title><g:message code="default.create.label" args="[entityName]" /></title>
		--%>
	</head>
	<body>
	
	
		<!-- SUBHEADER
		================================================== -->
		<div id="subheader">
			<div class="row">
				<div class="twelve columns">
					<p class="left">
						 Crea un proyecto
					</p>
					<p class="right">
						 <g:link controller="project" action="index">Lista de pryectos actuales</g:link>
					</p>
				</div>
			</div>
		</div>
		<div class="hr">
		</div>
		<!-- CONTENT 
		================================================== -->
		<%--<div class="row">
		    <!-- GOOGLE MAP IFRAME -->
			<div class="twelve columns">
				<iframe class="gmap" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=disney+paris&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=39.371738,86.572266&amp;ie=UTF8&amp;hq=disney&amp;hnear=Paris,+%C3%8Ele-de-France,+France&amp;t=m&amp;fll=48.881877,2.535095&amp;fspn=0.512051,1.352692&amp;st=103241701817924407489&amp;rq=1&amp;ev=zo&amp;split=1&amp;ll=49.027964,2.772675&amp;spn=0.315159,0.585022&amp;z=10&amp;iwloc=D&amp;output=embed">
				</iframe>
			</div>
		</div>
		--%>
		<div class="row">
			<!-- CONTACT FORM -->
			<div class="twelve columns">
				<div class="wrapcontact">
					<h5>Datos del proyecto:</h5>
					<%--
					<div class="done">
						<div class="alert-box success">
							 Message has been sent! <a href="" class="close">x</a>
						</div>
					</div>
					--%>

					<g:if test="${flash.message}">
						<div class="message" role="status">${flash.message}</div>
					</g:if>
					<g:hasErrors bean="${projectInstance}">
						<ul class="errors" role="alert">
							<g:eachError bean="${projectInstance}" var="error">
							<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
							</g:eachError>
						</ul>
					</g:hasErrors>
<%--					<g:form url="[resource:politicianInstance, action:'save']" >--%>
					<g:form url="[resource:projectInstance, action:'save']"  enctype="multipart/form-data">
						<div class="form">
							<fieldset class="">
								<g:render template="form"/>
							</fieldset>
							<fieldset class="buttons">
								<g:submitButton name="create" class="save readmore" value="${message(code: 'default.button.create.label', default: 'Crear')}" />
							</fieldset>
						</div>
					</g:form>
				</div>
			</div>

		</div>
		<div class="hr">
		</div>
		
		
		<%--
		<a href="#create-project" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="index"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="create-project" class="content scaffold-create" role="main">
			<h1><g:message code="default.create.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${projectInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${projectInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form url="[resource:projectInstance, action:'save']" >
				<fieldset class="form">
					<g:render template="form"/>
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
				</fieldset>
			</g:form>
		</div>
		--%>
	</body>
</html>
